/**
 * 首页
 *
 * @author dongxiaochai@163.com
 * @since 2016-01-06
 */
@import "variables.less";
@import "mixin.less";
body{
    background-color: #fff;
}

/**
 * 引导
 */
.top-banner{
    @height: 425px;
    height: @height;
    position: relative;
    margin: 0 auto;
    // overflow: visible;
    // position: relative;
    // overflow-x: hidden;
    // overflow-y: visible;
    z-index: 2;
    background: url(../img/banner-default.jpg) center center no-repeat;
    //搜索栏目
    .pro-guide-box{
        @padding: 20px;
        padding: @padding;
        position: absolute;
        left: 0;
        top: 15px;
        bottom: 15px;
        background: #FFF;
        width: 310px - @padding * 2;
        // height:400px;
        // overflow: hidden;
        .search-box{
            font-size: 0;
            @radius: 5px;
            @height: 36px;
            .item-field{
                border:0 none;
            }
            
            input, button{
                display: inline-block;
                *display: inline;
                *zoom:1;
                vertical-align: middle;
                height: @height - 2px;
                line-height: @height - 2px;
                border: 1px solid #ddd;
            }
            input{
                width: 179px;
                padding: 0 10px;
                font-size: 14px;
                border-top-left-radius: @radius;
                border-bottom-left-radius: @radius;
                border-right: 0 none;
                &:focus{
                    border-color: #f24644;
                }
            }
            button{
                cursor: pointer;
                height: @height;
                // *margin-top:-2px;
                // *line-height: @height - 2px;
                // *height: @height + 4px;
                // line-height: @height;
                width: 70px;
                color: #fff;
                text-align: center;
                font-size: 16px;
                background-color: @secColorRed;
                border-color: @secColorRed;
                border-top-right-radius: @radius;
                border-bottom-right-radius: @radius;
            }
        }
        .guide-item{
            // border-bottom: 1px solid #f0f0f0;
            // margin: 0 20px;
            line-height: 1.5;
            // height: 60px;
            margin: 10px 0;
            a{
                float: left;
                color: @fontColorLightBlack; 
                font-size: 14px;
                text-align: center;

                &:hover,&:active{
                    color:@primaryColorRed;
                }
            }
            dt{
                font-weight: @fontWeightBold;
                font-size: 18px;
                color: @fontColorDeepBlack;
                margin: 0px 0 5px 0;
                a{
                    font-size: 16px;
                    line-height: 2;
                    color: #333;
                }
            }
            dd a{
                margin-right:10px;
                white-space: nowrap;
            }

            //品牌
            &.brand{
                margin-top: 13px;
                margin-left:-@padding;
                margin-right:-@padding;
                padding: 5px 0 8px @padding;
                border:2px solid transparent;
                a{
                    width: 50px;
                }
                &.curr{
                    position: relative;
                    z-index: 20;
                    border:2px solid @secColorRed;
                    border-right-color: #fff;
                }
                dt{
                    margin-bottom: 5px;
                }
                dd{
                    margin-left: -7px;
                    position: relative;
                    a{
                        margin-right: 3px;
                        span{
                            display: block;
                            line-height: 1;
                            margin-top: 2px;
                        }
                        img{
                            width: 50px;
                            height: 50px;
                            display: block;
                            margin:0 auto;
                        }
                    }
                    i.more{
                        // cursor: pointer;
                        background: url(../img/icon/icon-w15.png) 0 -170px no-repeat;
                        position: absolute;
                        top: 30px;
                        right: 10px;
                        width: 14px;
                        height: 25px;
                    }
                }
            }

            //价格
            &.price{
                margin-top: 10px;
                dd{
                    margin-right: -10px;
                    *zoom: 1;
                    &:after{
                        content: '\20';
                        display: block;
                        height: 0;
                        clear: both;
                    }
                    a{
                        width: 60px;
                        text-align: left;
                        line-height: 2;
                    }
                }
            }

            //车型
            &.carStyle{
                margin-top: 13px;
                &.col2{
                    margin-right: -10px;
                }
                dt{
                    margin-bottom: 3px;
                }
                dd{
                    margin-right: -15px;
                    margin-left: -3px;
                    a{
                        margin-right: 2px;
                        width: 69px;
                        .icon{
                            background: url(../img/index-car-style.png) 0 6px no-repeat;
                            width: 67px;
                            height: 35px;
                            display: block;
                            margin:0 auto 2px auto;
                            &.icon1{
                                width: 72px;
                            }
                            &.icon2{
                                background-position: 7px -29px;
                            }
                            &.icon3{
                                background-position: 6px -73px;
                            }
                            &.icon4{
                                background-position: 5px -115px;
                            }
                        }
                    }
                }
            }
        }
    }
    // .banner-box{
    //     position: absolute;
    //     left: 0;
    //     top: 0;
    //     right: 0;
    //     bottom: 0;
    //     z-index: -1;
    //     overflow:hidden;
    // }
    
    //banner图
    .banner-container{
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: -410px;
        overflow: hidden;
        *zoom:1;
        height: 100%;
        width: 1920px;
        z-index: -1;
        // overflow: hidden;
        .banner-list{
            position: relative;
            // left: -410px;
            width: 100%;
            height: 100%;
            li{
                /*float: left;*/
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                opacity: 0;
                filter:alpha(opacity=0);
                z-index: 0;
                &.curr{
                    opacity: 1;
                    filter:alpha(opacity=100);
                    z-index: 100;
                }
                img{
                    width: 1920px;
                    height: 100%;
                    display: block;
                    margin: 0 auto;
                }
            }
        }
        .icon-list{
            position: absolute;
            bottom: 20px;
            left: 25%;
            z-index: 200;
            width: 50%;
            text-align: center;
            font-size: 0;
            li{
                display: inline-block;*display: inline;*zoom:1;
                background: url(../img/icon/icon-w15.png) 0 -30px no-repeat;
                width: 15px;
                height: 15px;
                border-radius: 10px;
                margin: 0 4px;
                &.curr{
                    background-position: 0 -15px;
                }
            }
        }
    }
}

//所有品牌
.all-brand{
    position: absolute;
    left: 308px;
    top: 0;
    width: 750px;
    z-index: 1000;
    border: 2px solid @secColorRed;
    // border-left-width: 0;
    background: #fff;
    padding: 25px 10px 10px 30px;
    .line{
        width: 2px;
        height: 111px;
        position: absolute;
        left: -2px;
        top: 69px;
        z-index: 100;
        background: #fff;
    }
    .title{
        line-height: 1;
        font-weight: @fontWeightBold;
        font-size: 18px;
        color: #000;
        padding-bottom: 10px;
    }
    .column{
        float: left;
        width: 365px;
        line-height: 25px;
        .class-item{
            // border:1px solid #ccc;
            position: relative;
            // margin: 0;
            padding: 0 0 10px 30px;
            .letter{
                position: absolute;
                left: 0;
                top: 0;
                color: @primaryColorRed;
                font-size: 18px;
                font-weight: @fontWeightBold;
            }
            .item-box{
                width: 335px;
                a{
                    float: left;
                    padding-right: 15px;
                    font-size: 14px;
                    white-space: nowrap;
                    &:hover,&:active{
                        color:@primaryColorRed;
                    }
                }
            }
        }
    }
}

/**
 * 主体内容
 */
.gx-module{
    padding-top: 30px;
    min-height: 0;
}

#pbody .wrapper{
    overflow: hidden;
}

/**
 * 我要买车
 */
.f-module{
    .module-title{
        position: relative;
        margin-bottom: 10px;
        border-left: 5px solid #fc5e64;
        font-size: 24px;
        line-height: 1;
        padding-left: 10px;
        color: @fontColorDeepBlack;
        line-height: 24px;
        .more{
            cursor: pointer;
            position: absolute;
            right: 15px;
            top: 0;
            z-index: 2;
            font-size: 14px;
            // text-decoration: underline;
            // 
            &:hover{
                color: @primaryColorRed;
            }
        }
    }
    .module-body{
        position: relative;
        border-top: 2px solid #eee;
    }
}
/* 分期购车 */
.buyCar-module{
    *position: relative;
    overflow-x: hidden;
    .module-body{
        padding: 20px 0 10px 0;
        margin-right: -80px;
        a{
            float: left;
            position: relative;
            width: 390px;
            overflow: hidden;
            height: 100px;
            padding: 30px 0;
            .main-box{
                margin:10px 0 0 10px;
                h3{
                    font-weight: @fontWeightBold;
                    font-size: 20px;
                    color: #555;
                }
                .price{
                    font-size: 16px;
                    strong{
                        color: @fontColorRed;
                        font-size: 32px; 
                        padding-right: 3px;
                        font-weight: normal;
                    }
                }
            }
            img{
                position: absolute;
                left: 118px;
                top: 25px;
                width: 220px;
                height: 95px;
                transition: all .2s ease-in;
            }
            &:hover img{
                transform: translate3d(-8px, 0, 0);
            }
        }
    }
}

//介绍
.intro-bar{
    margin-bottom: 10px;
}

/**
 * 特色主题
 */
.cars-module{
   .module-title{
        border-left: none;
        padding-left:0;
        position: relative;
        z-index: 2;
        b{
            font-family: "KaiTi";
            font-size: 20px;
            color: @primaryColorRed;
        }
        .nav-container{
            position: relative;
            z-index: 2;
            border-top: 0 none;
            font-size: 18px;
            margin-bottom: -12px;
            li{
                cursor: pointer;
                float: left;
                padding: 0 15px 10px 15px;
                // line-height: 50px;
                text-align: center;
                position: relative;
                border-bottom: 2px solid transparent;
                margin-right: 25px;
                &.curr{
                    color: @fontColorRed;
                    // border-color: @primaryColorRed;
                }
            }
        }
        p{
            position: absolute;
            left: 0;
            top: 34px;
            z-index: 10;
            height: 2px;
            background-color: @primaryColorRed;
            width: 102px;
            z-index: 10;
        }
    } 
}
                
    
.cars-module .module-body{
    .module-box{
        margin: 15px -16px 0 0;
        padding-bottom: 20px;
        .car-list{
            .car-item{
            }
        }
        .more{
            display: block;
            border-radius: 5px;
            background-color: @primaryColorRed;
            color: #fff;
            font-size: 18px;
            text-align: center;
            height: 50px;
            line-height: 50px;
            width: 190px;
            margin: -5px auto 20px auto;
            &:hover,&:active{
                background-color: #da3c3a;
            }
        }
    }
}
